package com.system.domain;

import java.io.Serializable;
import java.util.List;

public class Cart implements Serializable {//序列化
    private Integer id;
    private Integer pid;
    private Integer uid;

    //编写一个集合存储手机的信息
    private List<Phones> phonesList;

    public Cart() {
    }

    public Cart(Integer id, Integer pid, Integer uid, List<Phones> phonesList) {
        this.id = id;
        this.pid = pid;
        this.uid = uid;
        this.phonesList = phonesList;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public List<Phones> getPhonesList() {
        return phonesList;
    }

    public void setPhonesList(List<Phones> phonesList) {
        this.phonesList = phonesList;
    }

    @Override
    public String toString() {
        return "Cart{" +
                "id=" + id +
                ", pid=" + pid +
                ", uid=" + uid +
                ", phonesList=" + phonesList +
                '}';
    }
}
